package com.itbaizhan.paymentdemo.service;

import com.itbaizhan.paymentdemo.entity.RefundInfo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author itbaizhan
 * @since 04-26
 */
public interface IRefundInfoService extends IService<RefundInfo> {

    /**
     * 根据订单编号创建退款单
     * @param orderNo  订单编号
     * @param reason  退款理由
     * @return
     */
    RefundInfo createRefundByOrderNo(String orderNo,String reason);

    /**
     * 更新退款订单
     * @param bodyString
     */
    void updateRefund(String bodyString);

    /**
     * 更新退款订单
     * @param bodyString
     */
    void updateRefundStatus(String bodyString);

    //支付宝修改退款订单状态
    void updateRefundAliPayStatus(String orderNo);
}
